package com.ruoyi.member.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.member.mapper.BmAddressMapper;
import com.ruoyi.member.domain.BmAddress;
import com.ruoyi.member.service.IBmAddressService;

/**
 * #店铺订单地址信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-03
 */
@Service
public class BmAddressServiceImpl implements IBmAddressService 
{
    @Autowired
    private BmAddressMapper bmAddressMapper;

    /**
     * 查询#店铺订单地址信息
     * 
     * @param addressId #店铺订单地址信息主键
     * @return #店铺订单地址信息
     */
    @Override
    public BmAddress selectBmAddressByAddressId(Long addressId)
    {
        return bmAddressMapper.selectBmAddressByAddressId(addressId);
    }

    /**
     * 查询#店铺订单地址信息列表
     * 
     * @param bmAddress #店铺订单地址信息
     * @return #店铺订单地址信息
     */
    @Override
    public List<BmAddress> selectBmAddressList(BmAddress bmAddress)
    {
        return bmAddressMapper.selectBmAddressList(bmAddress);
    }

    /**
     * 新增#店铺订单地址信息
     * 
     * @param bmAddress #店铺订单地址信息
     * @return 结果
     */
    @Override
    public int insertBmAddress(BmAddress bmAddress)
    {
        return bmAddressMapper.insertBmAddress(bmAddress);
    }

    /**
     * 修改#店铺订单地址信息
     * 
     * @param bmAddress #店铺订单地址信息
     * @return 结果
     */
    @Override
    public int updateBmAddress(BmAddress bmAddress)
    {
        return bmAddressMapper.updateBmAddress(bmAddress);
    }

    /**
     * 批量删除#店铺订单地址信息
     * 
     * @param addressIds 需要删除的#店铺订单地址信息主键
     * @return 结果
     */
    @Override
    public int deleteBmAddressByAddressIds(Long[] addressIds)
    {
        return bmAddressMapper.deleteBmAddressByAddressIds(addressIds);
    }

    /**
     * 删除#店铺订单地址信息信息
     * 
     * @param addressId #店铺订单地址信息主键
     * @return 结果
     */
    @Override
    public int deleteBmAddressByAddressId(Long addressId)
    {
        return bmAddressMapper.deleteBmAddressByAddressId(addressId);
    }
}
